SmartFTP FTP Library
IFTPConnection::UploadFileEx Method

Uploads the specified local file to a specified remote file.

IDL
HRESULT UploadFileEx(
    [in] VARIANT localFile, 
    [in] BSTR remoteFile, 
    [in] ULONGLONG startPosition, 
    [in] ITransferProgressEvents* progress
);
Parameters

varLocalFile
An indicator of the local file. This may be a path to a file (String/BSTR), an IStream or any object that supports IStream.
bstrRemoteFile
The name of the remote file.
nStartPosition
The restart position of the local file.

The client opens a data connection and uploads the file with the STOR command. If nStartPosition is greater than zero, the client sends a REST command and the transfer is being resumed from this position.

What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.